package com.better.common.mq;

import com.better.common.mongo.model.BaseModel;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author xiaq
 * 消息接收
 * @create 2017-09-23 12:01
 **/
/*@Component
@RabbitListener(queues = "zxy")
public class Receiver {
    @RabbitHandler
    public void process(BaseModel hello) {
        System.out.println("Receiver : " + hello);
    }
}*/
